# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=dconf-editor
pkgver=3.38.3
pkgrel=2
pkgdesc="Dconf Editor is a viewer and editor of applications internal settings"
url="https://wiki.gnome.org/Apps/DconfEditor"
arch="all"
license="GPL-3.0-or-later"
makedepends="meson vala dconf-dev glib-dev gtk+3.0-dev"
subpackages="$pkgname-lang $pkgname-doc $pkgname-bash-completion"
source="https://download.gnome.org/sources/dconf-editor/${pkgver%.*}/dconf-editor-$pkgver.tar.xz
	meson-0.60.patch
	"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
cf00705c1e11eab980777b9696fbaaa0f5f8a8118276f2add4f4fcefe5aab46844a539539418ce61f285e65623179a9d63cc18a91339b70b5e7c9408c697e9d1  dconf-editor-3.38.3.tar.xz
2ab9eb114f372c59e3d2cc83515a7b17ed15a8f7e842fc61e52fd61bc096bddd49aa719eb1272899d6aee93cabb8272b07271a810aee9bdbf0c359b68e20e2b2  meson-0.60.patch
"
